MySQL database access for user data