finish with animation and main activity, starting with databases access