Working on get_page method in database.js