If you are using Postgres you can create temporary tables with CREATE TEMP TABLE table_name .... These tables will only last until the end of the users session and then be deleted automatically. If you keep the connection to the database open for the whole lifetime of your app this may be useful.
--tidiness is the memory loss of environmental mnemonics