Initial commit of database layer.