A database in this sense is a collection of tables. Your 1 PostgreSQL database should easily hold your three tables and many more. If you want to stick with flatfiles, consider
which can handle "pipe delimited" files just fine and allow you to do the kinds of things you are asking about with the same DBI interface you would use with PostgreSQL.