fixed db connection and got log in and sign up working, see TODO for more