debugging Database. Almost done!