Moved Database to js/index.js