API+Admin_API: fix issue where MySQL can drop connections

As documentented in http://docs.sqlalchemy.org/en/rel_0_8/dialects/mysql.html

Change-Id: I4cc0ae6a157d6ef9d731a5b5043c9dcdedb6a218