minor changes
rename structure.sql > database.schema
don't infinite loop if only one page exists
get_random is still broken though
DBI disables foreign_keys by default for SQLite
script to generate a test enviroment
create DB > generate posts