store dates not strings in DB