Adding DB connection and registration page