added comments cleaned up code, chang db name