Reverted back to mariadb and implemented pooling.