A simplistic version of the database, untested

Created a simplistic version of helper functions. Please do not merge, we have to discuss this together tomorrow.