added configuration capabilities and changed up database initialization