changed db and added in oojs