Properly escape database