Moved database con. lines to ejs sandbox