logs into a postgresql database; unusable for now without it