Added db to gitignore file
Added new auth script and auth class
Added common class file
Changed command handler to use the common functions