added basic database utils