DB and Security Changes

** Move Session below config
** Changed structure of DB to make more sense.
** Added inline URL creation
** Removed login and removal messages.
** Added in rawurldecode() for security purposes.
** Trimmed the fat.