Conversion to prepared statements for user management