Switched to postgresql

Included a minor bug fix... Running out of time for prototype :)