making it work for mysql