small adjustment and done

Made it so it prompts you before leaving the database entry pages.