added some db functions and added empty constructors