added date to database