Descalzo, so this is what happens when I use your script. I am not sure what I did, but everything is working now except for...
$database = 'stencil_access';
$db_username = 'stencil_admin';
$db_password = '<censored>';
This, but I will look over what Misson said, and edit my post in a few...