added auth with db, changed models and views