added exception for mysql
added add()