Added types to the database layer.