Closes #10 Separate database from the main.js