getting database layer working