If you are facing any kind of problem with Roundcube like: DATABASE ERROR: CONNECTION FAILED! or anything else, please perform following steps to fix the errors.
1. Drop the database using following command
mysql -e ‘drop database roundcube’
2. Update roundcube
Thats it. Tyr it now.