yes it is possible, but it is regular php code that can create the tables and everything as soon as you run it on the server..
i think that you should read up on php and mysql some using these resources rather than posting multiple easily-answered threads..
www.w3schools.com www.php.net www.mysql.com
in your case, heres an example of a code that will create a database and table when run..
$query = mysql_query("CREATE DATABASE database_name");
mysql_select_db("database_name");
$query2 = mysql_query("CREATE TABLE Person (LastName varchar(30), FirstName varchar, Address varchar, Age int(3) )";
will create a database named database_name, select it, and create a table named Person with the fields LastName maximum 30 characters, Firstname, Address, and Age maximum 3 integers