fixed new database is not getting updated
fixed bind of duration unit