Added database sql in protected/.