added constant table prefix in sql queries