Fix for foreign key constraints
authentication working
Fix server authentication issues