Updated the database changed str to dates