basic registering, mysql db, entities