DB wrapper now using promises
Cleaned db_reset code a little