added init method to database, progress made