Remove unnecessary links to hover and jquery in template
Add success and failure page templates
Add decorator to connect to database