Implemented something that use database in application.js