Update Code/Classes/database.java

return db = new database()
instead of return new database()
(It was problem for singleton)