[TASK] Remove strlen calls in the DatabaseConnection