Allow compilation with both MySQL and PostGreSQL
check that the user exists when creating a local account