I'm going to divide the handle-install.php file in two. The first will be createdb.php which will create the database and then redirect to useradd.php that will insert the new user using the model and then redirect to the admin page...that way should work