convert bindings of database to singleton