Fixed bug adding users with no profile to database.