first crappy implementation of a database