Created the database layer.