database connection working -- still needs comments