Close connection each action for mysql