changed namespace and folder for application, fixed bugs in database
use query string variable