Configuration:

TYPE:
 database - creates database
 table - creates table in selected database
If 'f' key specified, it will create database for table, if it doesn`t exists

Usage:

Nothing::call_module('db', array('CREATE', TYPE, DB_NAME, [TABLE_NAME], [f]));

Click on code to copy it