If you do database operations in 'Page-Load', it will
run it everytime you postback , unless you specify "if
Not PostBack'.
Secondly check your connect strings in the function
where you get a 'database not found' error.
You could post relevant pieces of code and exact error
message.