mysql database working but without user constraint checks