write user data to DB