fixed require mispelling in database wrapper
moving scripts to views folder