Make utilities class and migrate duplicate code; adjust schema for users table