Fixed most issues and server seems to be working ok simple operations.