Modifing database class