Why not just properly setup your site for the two configure.php files in:
/includes/configure.php
/admin/includes/configure.php

to use the DB_PREFIX define that are in those files properly?