database stuff
built in a small database for pre-fetching the data