added check in db for user, create user if no check