You need to set your user ID up as a super admin in config.php (you should see an example in there, it's comma delimited).
Your record in the xf_user table needs to have is_admin = 1.
You need to have a record corresponding to your user id in the xf_admin table.
(Note, untested
)