removed warning and check for mysql
updated