Updated bean definition and bugfix on mysql linar driver