Add postgresql compatibility