made the connection to the database more modular. updated the instructions.