error codes added, JSON responses updated
advanced db methods added
sql typing error fixed
login and register updated to return user_id