Added callback when could not get connection.

Added else case for when connection to database fails. Changed RegisterModel.js to registerModel.js so it matches how all other objects are named.