working dates inserts, problem with committing to db though