SQLite fixes, better async/await

Fixed SQLite not working
Making better use of async/await and Tasks