 ) #loc.storageEngine#
 </cfquery>
 
-<cfquery name="loc.query" datasource="wheelstestdb">
+<cfquery name="loc.query" datasource="#application.wheels.dataSourceName#">
 CREATE TABLE photogalleries
 (
 	photogalleryid #loc.identityColumnType#,

) #loc.storageEngine#
</cfquery>

<!--- 
create views
 --->
<cfquery name="loc.query" datasource="wheelstestdb">
CREATE VIEW userphotos AS
SELECT u.id AS userid, u.username AS username, u.firstname AS firstname, u.lastname AS lastname, pg.title AS title, pg.photogalleryid AS photogalleryid
FROM users u INNER JOIN photogalleries pg ON u.id = pg.userid;

) #loc.storageEngine#
</cfquery>

<cfquery name="loc.query" datasource="#application.wheels.dataSourceName#">
CREATE TABLE tags
(
	id #loc.identityColumnType#,
