Finished server. Non-select...probably needs rewrite.