fix date bug and addd drom to db