created database and index.js