okay, ACTUALLY fixed mongo connection for both server and client
fixed some minor style differences