Converted db_tests.js
Moved cursor tests