Converting DB connections to use mysqli; closes #104