added table prefix support, not fully implemented yet though