Cleaned up sql files
Auto-detect database/table name