What I did the first time I did something like that is, take a mysql file from a different application. Then change all the tables it would create when I would upload it to fit my needs. Then connect. When users hit submit, I cant remember the code but somehow its supposed to check say hellsheep_users and if their register they continue on.