replace application folder

Hai friends
I have a application folder and database file related to a certain project.I am trying to replace base application and database file with my project (application and data base file).

ie.,i deleted base application folder and kept my project application folder.Done same thing to data base also.

Now when iam opening ax it is showing me ‘You are not a recognised user,contact your system administrator’.

I tried update command and inserted my name in ‘userinfo’ table and ‘usergrouplist’ table.But still the same error.

iam planing to do other way: Take bus and usr objects in application folder and put in base 'application ’ folder.Replace the database with my project database.Do you know what objects i should take and how to replace.Plz tell me the process.

Thanks in advance.