synchronizing database code