add linter

add basic linter using pylint to check for errors
add email index

add missing unique index on the email field in the users table