updated database utilities. __init__ now creates a database of no database existed.