script tags to layout
move check in database to routes/index bc of require statement