Even more logic (nearly there now i think)

Some alterations to queries
Added username to bid model
All dataprocessing complete - ready for socket.io!