Added some DB utilities