Changed connect_db() to a class and using "with"
Changed table item to items and added table passwords