viewtopic.php?t=42067&f=148
Read that, next you would want to make a table with the following columns:
accountname, drift points
then you'd do something like
local handler = mysql_connect("localhost", "root", "password", "database")
local accountname = getAccountName( getPlayerAccount( player ) )
local driftpoints = driftpoints
mysql_query(handler, "UPDATE users SET driftpoints = '" .. driftpoints .."' WHERE accountname = '" .. accountname .. "' ")
something like that, then on your register script you should make it insert them into the users table or whatever.